package com.quanta.anag.candidati.dynamicjsf;

import java.util.TimeZone;
import javax.faces.convert.Converter;
import javax.faces.convert.DateTimeConverter;

/**
 *
 * @author roberto
 */
public class JsfDateConverter {

    public Converter createConverter() {
        DateTimeConverter dateTimeConverter = new DateTimeConverter();
        dateTimeConverter.setPattern("dd MMM yyyy");
        dateTimeConverter.setType("date");
        dateTimeConverter.setTimeZone(TimeZone.getTimeZone("CET"));
        return dateTimeConverter;
    }
}
